//
//  PKhud.swift
//  ZNZXSuperMarket
//
//  Created by 四川中农 on 2018/9/14.
//  Copyright © 2018年 四川中农. All rights reserved.
//

import Foundation
import PKHUD

struct PKhud {
    static func showText(text:String){
        HUD.flash(.label(text), delay: 1)
    }
    
    static func show(){
        HUD.show(.progress)
    }
    
    static func showProgress(title:String){
        HUD.show(.labeledProgress(title: nil, subtitle: title))
    }
    
    static func hiden(){
        HUD.hide()
    }
}
